<template>
	<view class="uni-bg-white radius-12 px-12 py-16 mb-8 mt-8">
		<view class="fs-14 font-semibold">经纪人推广权益</view>
		<block v-if="(detailInfo.defaultCommissionType == 1 || detailInfo.defaultCommissionType == 2)">
			<view class="fs-12 mt-8">权益一：佣金 {{ detailInfo.defaultCommissionType == 1 ? `¥${detailInfo.commissionAmt}` : `${detailInfo.commissionRate}%`}}</view>
			<!-- <view class="color-primary">
				佣金 {{ detailInfo.commissionAmt ? `¥${detailInfo.commissionAmt}` : `${detailInfo.commissionRate}%`}}
			</view> -->
			<view class="fs-12 mt-8"  v-if="detailInfo.otherEquity">权益二：{{detailInfo.otherEquity.replace(/\\n/g, '\n')}}</view>
			
		</block>
		<view v-else>
			<text v-if="detailInfo.otherEquity">{{detailInfo.otherEquity.replace(/\\n/g, '\n')}}</text>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue'
	
	const props = defineProps({
		detailInfo:{
			type:Object
		},
		otherEquity: {
			type: String
		},
		commissionAmt: {
			type: [Number, String]
		},
		commissionRate: {
			type: [Number, String]
		}
	})
</script>

<style>
</style>